<?php
error_reporting(0);
/** PDO Database Connection
 *
 *  $hst - 主机地址和端口
 *  $dbn - 数据库名
 *  $usr - 用户名
 *  $psd - 密码
 *
 *  Created by Xiao Shikang on May 9th, 2014
**/
$hst = 'localhost';
$dbn = 'shu';
$usr = 'root';
$psd = 'root';
// 新建数据库连接
$dbc = new PDO("mysql:host=$hst;dbname=$dbn", $usr, $psd);
?>